﻿@using ECGadmin.Common
@model SubCategoryTemplateDto
<div class="popup-wap">
    <div class="popup-content">
        <div class="icon-close-popup"></div>
        <div class="box-Info">
            @using (Ajax.BeginForm("EditSubCateTemplate", new AjaxOptions
                                                                {
                                                                    OnBegin = "ShowLoading",
                                                                    OnComplete = "HideLoading",
                                                                    OnSuccess = "AjaxResultDataSubmitEditSubCateTemplate"
                                                                }))
            {
                @Html.HiddenFor(m => m.Id)
                <table class="table-info create-banner-image">
                    <tr>
                        <td class="tInfoLeft">
                            Template danh mục
                        </td>
                        <td class="tInfoRight">
                            @Html.DropDownListFor(m => m.ProductCateTempMappingId, new SelectList((List<ProductCateTempMappingDto>)ViewBag.CateTemplateList, "Id", "Description"), new { id = "DiffProductCateTempMappingId" })
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft">
                            Mô tả
                        </td>
                        <td class="tInfoRight">
                            @Html.TextAreaFor(m => m.Description)
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft">
                            Nội dung template
                        </td>
                        <td class="tInfoRight">
                            @Html.TextAreaFor(m => m.TempContent, new { rows = "20", @class = "w-90-percent" })
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft">
                            Thứ tự
                        </td>
                        <td class="tInfoRight">
                            @Html.TextBoxFor(m => m.DisplayOrder)
                        </td>
                    </tr>
                    <tr>
                        <td class="tInfoLeft"></td>
                        <td class="tInfoRight">
                            <input type="submit" value="Chỉnh sửa template con" class="m-t-b-10" />
                        </td>
                    </tr>
                </table>
            }
        </div>
    </div>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
</div>
<!-- END .popup-wap -->